//
//  NewsTableViewCell.m
//  网易
//
//  Created by dllo on 15/11/10.
//  Copyright © 2015年 HuangLiJing. All rights reserved.
//

#import "NewsTableViewCell.h"

@implementation NewsTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        [self creatSubViews];
        
    }
    
    
    return self;
    
}


#pragma mark - 自定义cell第二步:布局子视图


- (void)creatSubViews{
    
   // self.backgroundColor = [UIColor darkGrayColor];
    self.headImageView = [[UIImageView alloc] initWithFrame:CGRectMake(5, 5, 100, 80)];
    self.headImageView.backgroundColor = [UIColor colorWithRed:0.868 green:0.847 blue:0.891 alpha:1.000];
    [self.contentView addSubview:self.headImageView];
    
    self.label = [[UILabel alloc]initWithFrame:CGRectMake(130, 5, 100, 30)];
    self.label.backgroundColor = [UIColor whiteColor];
    self.label.text = @"哈哈";
    [self.contentView addSubview:self.label];
    
    
    self.label = [[UILabel alloc]initWithFrame:CGRectMake(130, 35, 230, 60)];
    self.label.backgroundColor = [UIColor whiteColor];
    self.label.text = @"hahahahahahahahhahahahahahahhahahahahahahahahhahahahahahahahahahahaha哈哈";
    self.label.numberOfLines = 0;
    self.label.font = [UIFont systemFontOfSize:15];
    [self.contentView addSubview:self.label];
    
    
    
}


@end
